<template>
  <div>
    最后一级：{{ value }}
    <button @click="change">改变父组件的值</button>
  </div>
</template>

<script>
export default {
  name: 'Lastson1',
  props: {
    value: {
      type: Number,
      default: 1
    }
  },
  methods: {
    change () {
      this.$dispatch('changeMoney', 1000)
    }
  }
}
</script>

<style>

</style>